



class demo(object):
    def __init__(self):
        self.name = '张三'
        self.age = 99
        self.sssss = '捣乱用的字段'

    
    #def __getattribute__(self, value):
    #    print('__getattribute__' + str(value))
    #    return object.__getattribute__(self, value)
    
    def __getattr__(self, value):
        print('__getattr__' + str(value))
        print(type(value))
        return object.__getattr__(self, value)

    def getname(self):
        pass;

    pass;


dd = demo()
dd.name
dd.getname()

